package six;

import java.math.BigDecimal;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner a = new Scanner(System.in);
		while(a.hasNext()){
			BigDecimal num1 = new BigDecimal(a.next());
			BigDecimal num2 = new BigDecimal(a.next());
			System.out.println(num1.add(num2));
			System.out.println(num1.multiply(num2));
		}
	}
}